package com.timothy.question;

import android.graphics.Color;

/**
 * 
 * @author Timothy
 *
 */

public class TypeBean1 {
	private String question;
	private String[] choice = new String[2];
	private String wholeMessage;
	private TypeBean1Config config;
	
	public TypeBean1Config getConfig() {
		return config;
	}
	public void setConfig(TypeBean1Config config) {
		this.config = config;
	}

	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String[] getChoice() {
		return choice;
	}
	public void setChoice(String[] choice) {
		this.choice = choice;
	}
	public String getWholeMessage() {
		return wholeMessage;
	}
	public void setWholeMessage(String wholeMessage) {
		this.wholeMessage = wholeMessage;
	}
	
	public static TypeBean1 getMockInstance(){
		TypeBean1 bean = new TypeBean1();
		//question and answers
		bean.setQuestion("Q1:Are you happy?");
		bean.setChoice(new String[]{"Yes","No"});
		StringBuffer sb = new StringBuffer(bean.getQuestion()+"\n");
		sb.append("1:"+bean.getChoice()[0]+"\n");
		sb.append("2:"+bean.getChoice()[1]+"\n");
		bean.setWholeMessage(sb.toString());
		//UI face Config
		TypeBean1Config config = new TypeBean1Config();
		config.setLayoutBgColor(Color.parseColor("#FFCCCC"));
		config.setLayoutBgLight(Color.CYAN);
		
		config.setLabelBgColor(Color.parseColor("#FFFFFF"));
		config.setLabelTextColor(Color.parseColor("#000000"));
		config.setLabelTextSize(15);
		
		config.setButtonTextColor(Color.parseColor("#0000ff"));
		config.setButtonTextSize(30);
		
//		config.setFlyMode(true);
		
		bean.setConfig(config);
		return bean;
	}
	
}
